#ifndef GL_TEXTURE_H
#define GL_TEXTURE_H

#include "GLInclude.h"
#include "MWTexture.h"

namespace Myway {

	class GLTexture : public Texture
	{
		friend class GLTextureManager;

	public:
		GLTexture();
		~GLTexture();

		virtual void Release();

		virtual void Lock(LockedRect * pLockedBox, int LockFlags);
		virtual void Unlock();

		GLuint GetGLTexture() { return mGLTexture; }

	protected:
		GLuint mGLTexture;
		void * mLockData;
	};

}


#endif